/* ======================================================= 
                  Inner START
   ======================================================= */

/* .news_Inner_Wrapper {
    display: flex;
    flex-direction: column;
    gap: 56px;
} */

.news_Inner_TitleBar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: start;
    margin-bottom: 56px;
}

.news_Inner_TitleBar_Title {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news_Inner_Image {
    width: 808px;
    margin-inline: auto;
    margin-top: 24px;

}

.news_Inner_Body {
    text-align: left;
}

.news_Inner_Body h2 {
    color: var(--Gray-G20, #3D3D3D);
    font-size: 18px;
    font-weight: 700;
    line-height: 32px;
    width: 100%;
}

.news_Inner_Body p {
    color: var(--Gray-G20, #3D3D3D);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
}

.news_Inner_Body img {
    margin-block: 64px;
    width: 392px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news_Inner_Body p:has(> img) {
    position: relative;
}

.news_Inner_Body p:has(> img)::before {
    content: "";
    background: var(--Primary-P99, #E5EFF5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 808px;
    height: 178px;
    z-index: -1;
}

.file_Link_Wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.file_Link_Wrapper a {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 8px 50px;
    background: var(--Primary-P30, #00446D);
    width: max-content;
    transition: 0.3s;
}

.file_Link_Wrapper a:hover {
    background: var(--Primary-P40, #005285);
    color: #FFF;
}

/* GALLERY DETAIL */

.news_Inner_Galler_Header {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-block: 80px 104px;
}

.news_Inner_Galler_Header::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #CCDFEB;
    z-index: -1;
}

.news_Inner_Galler_Header h3 {
    background: #FFF;
    padding: 16px !important;
    width: max-content;
}

.image-wrapper img {
    object-fit: contain;
    margin-inline: auto;
}

.image-wrapper {
    width: 100%;
}

@media (max-width: 900px) {
    .news_Inner_Image {
        width: 100%;
    }

    .news_Inner_TitleBar_Title {
        gap: 24px;
    }

    .news_Inner_Body h2 {
        color: var(--Gray-G20, #3D3D3D);
        font-size: 16px;
        font-weight: 500;
        line-height: 32px;
    }

    .news_Inner_Body p {
        color: var(--Gray-G20, #3D3D3D);
        font-size: 14px;
        font-weight: 400;
        line-height: 28px;
    }

    .news_Inner_Galler_Header {
        margin-block: 80px 40px;
    }

    .image-wrapper img {
        width: 300px !important;
    }

    .image-gallery-wrapper li {
        width: 100% !important;
        height: 72px !important;
    }

    .image-gallery-wrapper {
        padding: 0 !important;
        box-shadow: none !important;
    }

    .gallery-image-container .top-image {
        width: 100%;
        height: 171px;
        overflow: hidden;
    }

    .gallery-image-container .top-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-gallery-wrapper .ImagesItem {
        display: flex !important;
        gap: 16px;
        height: 72px;
        width: 100%;
        overflow-x: scroll !important;
        scroll-snap-type: x mandatory;
    }

    .image-gallery-wrapper li {
        display: flex;
        width: 128px !important;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .image-gallery-wrapper li:nth-child(1),
    .image-gallery-wrapper li:nth-child(2) {
        display: none;
    }

    .image-gallery-wrapper li:nth-child(5) a::before {
        display: none !important;
    }

    .image-gallery-wrapper li:nth-child(5) a::after {
        display: none !important;
    }
}


.image-gallery-wrapper li {
    overflow: hidden;
    height: 128px;
    width: 100%;
    position: relative;
}

.image-gallery-wrapper li:nth-child(5) a::after {
    content: "All Images";
    position: absolute;
    color: white;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
    /* 200% */
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(3px);
    z-index: 2;
}

.image-gallery-wrapper li:nth-child(n + 6) {
    display: none;
}

.image-gallery-wrapper li:nth-child(5) a::before {
    content: url("../assets/icons/chevron.svg");
    position: absolute;
    top: 42%;
    left: 25%;
    --icon: 18px;
    filter: brightness(0) invert(1);
    /* تمام رنگ‌ها سفید میشن */
    z-index: 5;
}

.image-gallery-wrapper .ImagesItem {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 16px;
    row-gap: 32px;
}

/* First image: full-width across all 4 columns */
.image-gallery-wrapper .gallery:first-child {
    grid-column: 1 / -1;
    height: 540px;
    overflow: hidden;
}

/* Other images: perfect squares */

.image-gallery-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-gallery-wrapper li a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}